from pyecharts.charts import Bar

from pyecharts import options

sal = [5000,2000,3000,6400]
city = ["长沙","南昌","北京","上海"]
bar = Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/元",sal)
bar.set_global_opts(title_opts=options.TitleOpts(title="各城市最低薪水图",subtitle="单位/元"))
bar.render("barmin.html")
